﻿<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>Hi-Blogs OAuth认证</title>    
    <script src="lib/jquery/dist/jquery.min.js"></script>
    <style type="text/css">
        html, body {
            font-size: 14px;
            line-height: 180%;
        }
    </style>

</head>
<body>

    <div>
        <h3 id="mgss">数据传输中，请稍后...</h3>
    </div>

</body>
</html>
<script src="/lib/jquery/dist/jquery.min.js"></script>
<script src="/js/jquery.common.js"></script>
<script type="text/javascript">
    $(function () {
        $.post("/api/Account/GetOAuthUser", { "code": $.queryString("code"), "type": $.queryString("state") }, function (obj) {
            debugger
            try {
                if (window.opener.location.href.indexOf("haojima.net/Admin/Account/") >= 0)
                    window.opener.location.href = "/";
                else
                    window.opener.location.reload(true);//强制刷新
            } catch (e) {
                alert("自动刷新或跳转失败~");
            }
            window.close();
        });
    });
</script>